diff options
| author | Factiven <[email protected]> | 2023-04-18 23:33:20 +0700 |
|---|---|---|
| committer | Factiven <[email protected]> | 2023-04-18 23:33:20 +0700 |
| commit | 6309818a929ca2e7324ea55409bddba434067279 (patch) | |
| tree | 3cd24cec17b5cd29790f89dbff411d0246fad11d /pages/anime/watch/[...info].js | |
| parent | 11th fixes (diff) | |
| download | moopa-6309818a929ca2e7324ea55409bddba434067279.tar.xz moopa-6309818a929ca2e7324ea55409bddba434067279.zip | |
12th fixes
Diffstat (limited to 'pages/anime/watch/[...info].js')
| -rw-r--r-- | pages/anime/watch/[...info].js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/pages/anime/watch/[...info].js b/pages/anime/watch/[...info].js index 98926d4..cd63614 100644 --- a/pages/anime/watch/[...info].js +++ b/pages/anime/watch/[...info].js @@ -57,8 +57,6 @@ export default function Info({ info, sessions, statusWatch }) { .filter((item) => item.id == info.id) .map((item) => item.title); - // console.log(info.skip); - return ( <> <Head> @@ -510,7 +508,12 @@ export async function getServerSideProps(context) { statusWatch = "COMPLETED"; } else if (gut?.status === "REPEATING") { statusWatch = "REPEATING"; - } else if (aniData.totalEpisodes === parseInt(playingEpisode)) { + } else if (gut?.media?.episodes === parseInt(playingEpisode)) { + statusWatch = "COMPLETED"; + } else if ( + gut?.media?.episodes !== null && + aniData.totalEpisodes === parseInt(playingEpisode) + ) { statusWatch = "COMPLETED"; } |